#ifndef QFRAMEDIRSTREE_H
#define QFRAMEDIRSTREE_H

#include <QWidget>
#include <QSettings>
#include <QStandardItemModel>
namespace Ui {
class QFrameDirsTree;
}

class QFrameDirsTree : public QWidget
{
    Q_OBJECT

public:
    explicit QFrameDirsTree(QWidget *parent = nullptr,
                            QString name = "default_dir",
                            QString type = "*",
                            QString path = "");
    ~QFrameDirsTree();

private slots:
    void on_ui_btm_dir_clicked();

    void on_ui_tree_flow_doubleClicked(const QModelIndex &index);

private:
    Ui::QFrameDirsTree *ui;
    //增加参数保存
    QSettings *settings;
    QStandardItemModel *tocModelFlow;
    QString   file_filter; // 文件滤除
    QString   dir_save; //路径缓存

    void update_files();
};

#endif // QFRAMEDIRSTREE_H
